home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cc03.arc
/
PUT.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1986-03-15
|
347 b
|
40 lines
/* -- put.c create archival file -- */
#include "stdio.h"
#define EOF -1
main()
{
int byte, ecode;
char *header;
static char hdr_msg[] = "this file is for archive purposes only";
header = hdr_msg;
ecode = puts(header);
while ( (byte = getchar()) != EOF)
putchar(byte);
}